package cn.wolfcode.p2p.base.domain;

import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by wolfcode on 2018/7/23.
 */
@Setter
@Getter
public class SystemDictionary extends BaseDomain {
	private String title;// 分类名称,如:教育背景
	private String sn;// 分类编码 ,如:educationBackground

	public String getJsonString() {
		Map<String, Object> json = new HashMap<>();
		json.put("id", id);
		json.put("title", title);
		json.put("sn", sn);
		return JSONObject.toJSONString(json);
	}
}
